package com.Util;

import java.util.List;
import java.util.Map;

public class CommonUtil {

	public static boolean isNull(Object o){
		boolean result = true;
		if(o!=null){
			if(o instanceof String){
				if(o.toString()!=""){
					result = false;
				}
			}else if(o instanceof List){
				List lo = (List)o;
				if(lo.size()==0){
					result = false;
				}
			}else if(o instanceof Map){
				Map mo = (Map)o;
				if(!mo.keySet().isEmpty()){
					result = false;
				}
			}
		}
		return result;
	}
}
